import request from '../http.js'

// 设置默认车牌
export const setDefaultCar = id => {
	return request({
			url: `/user/car/setDefault/${id}`,
			method: 'POST',
	})
}

// 删除车牌
export const delUserCar = id => {
	return request({
			url: `/user/car/del/${id}`,
			method: 'POST',
	})
}

// 添加车牌
export const addUserCar = plate => {
	return request({
			url: `/user/car/add/${plate}`,
			method: 'POST',
	})
}

// 监听绑定车牌
export const tempLicenseRegister = data => {
	return request({
			url: `/carcome/tempLicense/register`,
			method: 'POST',
			data
	})
}

// 点击确认入场
export const tempLicenseEnter = data => {
	return request({
			url: `/carcome/tempLicense/enter`,
			method: 'POST',
			data
	})
}